ifneq ($(KERNELRELEASE),)
	obj-m:=spi_oled.o

else
	KDIR :=/lib/modules/$(shell uname -r)/build

PWD :=$(shell pwd)

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
endif